package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCommentService {
    void save(StrategyComment comment);

    /**
     * mongodb分页
     * @param qo
     * @return
     */
    Page query(StrategyCommentQuery qo);

    /**
     * 攻略点赞
     * @param detailId
     * @param userId
     */
    void commentThumbUp(String detailId, Long userId);

    List<StrategyComment> queryByUserId(Long id);
}
